import App from './App'

import {
	createSSRApp
} from 'vue'
import wxShare from "@/utils/wxShare"
import FootTabs from '@/components/footer-tabs.vue'
import TnSearchBox from '@/uni_modules/tuniaoui-vue3/components/search-box/src/search-box.vue'
import TnEmpty from '@/uni_modules/tuniaoui-vue3/components/empty/src/empty.vue'
import TnIcon from '@/uni_modules/tuniaoui-vue3/components/icon/src/icon.vue'
export function createApp() {
	const app = createSSRApp(App)
	app.component('FootTabs', FootTabs)
	app.component('TnSearchBox', TnSearchBox)
	app.component('TnEmpty', TnEmpty)
	app.component('TnIcon', TnIcon)
	
	app.config.globalProperties.$wxShare = wxShare;
	
	return {
		app
	}
}